package zengqiang.day05

fun main(args: Array<String>) {

    println(calc(1,2,::add)) //3
}

fun calc(a:Int,b:Int,block:(Int,Int)->Int):Int{
    return block(a,b)
}

fun  add(a:Int,b:Int):Int{
    return a+b
}